package day10_io_code.com.itheima.d3_transfer_stream;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        try (
                FileReader fr = new FileReader("d:\\a.txt");
                BufferedReader br = new BufferedReader(fr);
                ){
            String line;
            while ((line = br.readLine()) != null){
                System.out.println(line);
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
